const path = require("path")

module.exports = {
    publicPath: "./",
    configureWebpack: {
        resolve: {
            alias: {
                "@components": path.resolve(__dirname, "src/components"),
                "@utils": path.resolve(__dirname, "src/utils"),
                "@apis": path.resolve(__dirname, "src/apis"),
                "@plugins": path.resolve(__dirname, "src/plugins"),
                "@views": path.resolve(__dirname, "src/views"),
                "@router": path.resolve(__dirname, "src/router"),
                "@store": path.resolve(__dirname, "src/store"),
                "@static": path.resolve(__dirname, "src/static"),
                "@style": path.resolve(__dirname, "src/style"),
            }
        }
    },
    // devServer: {
    //     proxy: {
    //         '/api': {
    //             target: 'http://www.xxx.com',
    //             ws: true,
    //             changeOrigin: true,
    //             pathRewrite: {
    //                 "^/api": "/"
    //             }
    //         }
    //     }
    // }
}